<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        @font-face{
            font-family: my-consola;
            src: url("../static/font/consola.ttf");
        }
        /*想让那标签的文字变样就放那个标签的名字*/
        .sever-font p {
            font-family: my-consola, serif;
        }
    </style>
</head>
<body>

<section class="sever-font">
    <p>服务端字体-hello</p>
    <p>服务端字体-world</p>
    <span>123</span>
</section>
</body>
</html>